package com.xiaomi.service.Impl;

import com.xiaomi.dao.DingdankuaizhaoMappera;
import com.xiaomi.entity.Dingdankuaizhao;
import com.xiaomi.service.DingdankuaizhaoService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @ClassName DingdankuaizhaoServiceImpl
 * @Description TODO
 * @Author 獄
 * @Date 2021/11/29 0:22
 */
@Service
public class DingdankuaizhaoServiceImpl implements DingdankuaizhaoService {
    @Resource
    DingdankuaizhaoMappera dingdankuaizhaoMapper;

    @Override
    public List<Dingdankuaizhao> selectAll(Map<String, Object> pars) {
        return dingdankuaizhaoMapper.selectAll(pars);
    }

    @Override
    public int count(Map<String, Object> pars) {
        return dingdankuaizhaoMapper.count(pars);
    }

    @Override
    public int update(Dingdankuaizhao dingdankuaizhao) {
        return dingdankuaizhaoMapper.update(dingdankuaizhao);
    }

    @Override
    public int add(Dingdankuaizhao dingdankuaizhao) {
        return dingdankuaizhaoMapper.add(dingdankuaizhao);
    }

    @Override
    public int del(int id) {
        return dingdankuaizhaoMapper.del(id);
    }
}
